<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圆角</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: orange;
            margin: 20px auto;
            border-radius: 10px 20px 40px 80px;
        }

        .box2 {
            text-align: center;
            line-height: 200px;
            width: 200px;
            height: 200px;
            background-color: green;
            border-radius: 50%;
            margin: 0 auto;
        }

        .box3 {
            width: 500px;
            height: 80px;
            background-color: blueviolet;
            text-align: center;
            line-height: 80px;
            border-radius: 40px;
            margin: 10px auto;
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <div class="box2">正圆形状,必须是正方形才行</div>
    <div class="box3">胶囊形状,必须是长方形才行,圆角属性设置成高度的一半</div>
</body>

</html>